

import { MOUNTED, MOUNTING, NOT_MOUNTED } from "../applications/app.helpers";


export async function toMountPromise(app) {
    if(app.status !== NOT_MOUNTED){
        return app
    }
    app.status = MOUNTING;
    await app.mount();
    app.status = MOUNTED;
    return app
}
